package com.glSto.rep;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.List;

/**
 * 工单创建响应DTO
 */
@Data
public class WorkOrderResponseDTO {
    // 响应消息头
    @Data
    public static class EsMsgHead {
        private String IM_GUID;
        private String SEND_TIME;
        private String SENDER;
        private String SEND_CFID;
        private String RECEIVER;
        private String RECEIVE_IFID;
        private String RECEIVE_METHOD;
        private String SEND_SYSTEM_ID;
        private String PROXY_ID;
        private String MANDT;
        private String SEND_OPERATOR;
        private String SPRAS;
    }

    // 响应结果：ET_RETURN
    @Data
    public static class RespReturn {
        private String TYPE;
        private String ID;
        private String NUMBER;
        private String MESSAGE;
        private String LOG_NO;
        private String LOG_MSG_NO;
        private String MESSAGE_V1;
        private String MESSAGE_V2;
        private String MESSAGE_V3;
        private String MESSAGE_V4;
        private String PARAMETER;
        private String ROW;
        private String FIELD;
        private String SYSTEM;
    }

    // 响应结果：ET_NUMBER
    @Data
    public static class RespNumber {
        private String AUFNR_IN;
        private String AUFNR_NEW;
    }

    // 主响应字段
    @JsonProperty("es_MSG_HEAD")
    private EsMsgHead ES_MSG_HEAD;

    @JsonProperty("et_RETURN")
    private List<RespReturn> ET_RETURN;

    @JsonProperty("et_NUMBER")
    private List<RespNumber> ET_NUMBER;
}